package io.github.siltal.examsystembackend.entity;

import jakarta.persistence.*;

@Entity
@Table(name = "t_exam_options", schema = "my_app_db")
public class ExamOption {
    @Id
    @Column(name = "id", nullable = false)
    private Integer id;

    @Column(name = "question_id", nullable = false)
    private Integer questionId;

    @Lob
    @Column(name = "abc", columnDefinition = "LONGTEXT")
    private String abc;

    @Lob
    @Column(name = "`option`", columnDefinition = "LONGTEXT")
    private String option;

    @Lob
    @Column(name = "option_img", columnDefinition = "LONGTEXT")
    private String optionImg;

    @Column(name = "is_true", nullable = false)
    private Boolean isTrue = false;

    @Column(name = "has_img", nullable = false)
    private Boolean hasImg = false;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getQuestionId() {
        return questionId;
    }

    public void setQuestionId(Integer questionId) {
        this.questionId = questionId;
    }

    public String getAbc() {
        return abc;
    }

    public void setAbc(String abc) {
        this.abc = abc;
    }

    public String getOption() {
        return option;
    }

    public void setOption(String option) {
        this.option = option;
    }

    public String getOptionImg() {
        return optionImg;
    }

    public void setOptionImg(String optionImg) {
        this.optionImg = optionImg;
    }

    public Boolean getIsTrue() {
        return isTrue;
    }

    public void setIsTrue(Boolean isTrue) {
        this.isTrue = isTrue;
    }

    public Boolean getHasImg() {
        return hasImg;
    }

    public void setHasImg(Boolean hasImg) {
        this.hasImg = hasImg;
    }

}